<?php if ($type == 'pui'): ?>
    <img src=" <?php echo url_for('@render_image?type=pui&imageName=' . $image_name . '.' . $image_format . '&c=' . $camera_id . '&com=' . $company_id) ?>" alt="" />
<?php elseif ($type == 'pui'): ?>
    <?php use_javascript('flowplayer-3.2.6.min.js') ?>

    <a
        href="<?php echo url_for('@render_video?type=puv&vid=' . $vid. '&c=' . $camera_id . '&com=' . $company_id, true) ?>.flv"
        style="display:block;width:520px;height:330px"  
        id="player"> 
    </a>
    <!-- this will install flowplayer inside previous A- tag. -->
    <script>
        flowplayer("player", "/medias/flowplayer-3.2.7.swf");
    </script>
<?php endif; ?>


